<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php $this->load->view('admin/header');?>
<body id="login">
<!-- Copyright ?2005. Spidersoft Ltd -->
<style>
A.applink:hover {border: 2px dotted #DCE6F4;padding:2px;background-color:#ffff00;color:green;text-decoration:none}
A.applink       {border: 2px dotted #DCE6F4;padding:2px;color:#2F5BFF;background:transparent;text-decoration:none}
A.info          {color:#2F5BFF;background:transparent;text-decoration:none}
A.info:hover    {color:green;background:transparent;text-decoration:underline}
</style>
<!-- /Copyright ?2005. Spidersoft Ltd -->
<div id="login-wrapper" class="png">
  <div id="login-top">
    <h1>Simpla Admin</h1>
    <!-- Logo (221px width) -->
    <img id="logo" src="<?=base_url()?>application/views/admin/images/logo.png" alt="Simpla Admin logo" /> </div>
  <!-- End #logn-top -->
  <div id="login-content">
    <?=form_open('admin/login?ref='.urlencode($this->referrer), array('name'=>'login'));?>
    <?php if(!empty($_POST)):?>
                        <?php echo (empty($this->form_validation->error_string))?'':'<li>'.$this->form_validation->error_string.'</li>'; ?>
					<div class="notification information png">
                    <div> <?=validation_errors(); ?>      </div>
     				</div>
      <?php endif;?>
                        
      <p>
        <label>用户名</label>
        <input name="name" type="text" class="text-input" id="name" />
      </p>
      <div class="clear"></div>
      <p>
        <label>密　码</label>
        <input name="password" type="password" class="text-input" id="password" />
      </p>
      <div class="clear"></div>
      <p>
        <input class="button" type="submit" value="登录" />
      </p>
    </form>
  </div>
  <!-- End #login-content -->
</div>
<!-- End #login-wrapper -->
	</body>
</html>
